<?php
    $(document).ready(function(){       
 
   $("#submit").validate({             
   		errorClass:'showerror',
   rules: {   
   		username:{    
			            
			remote:'<?php echo base_url();?>login/remote1'                 
			},              
   		email:{    
			             
			remote:'<?php echo base_url();?>login/remote'                 
			},            
		 },   
		          
		 messages: {          
		 		username : {       
					remote : "<li> username alrardy.</li>"
					//minlength :  "<li> Please enter a over  5 charecter.</li>"
				} ,            
				   
		      email: {       
					remote : "<li> email alrardy.</li>"
					//minlength :  "<li> Please enter a over  5 charecter.</li>"
				}             
			 
			                 
			    }            
				         
				  });    
				   }); 
				   
?>			